package com.iking.toolkit.util.ocr;

import com.benjaminwan.ocrlibrary.OcrResult;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 功能描述:ocr 识别结果
 *
 * @author: yfl
 * @date: 2024/8/7 14:58
 */
@Data
@Schema(description = "ocr 识别结果")
public class OcrRecognizeModel {

    @Schema(description = "内容id")
    private String contentId;

    @Schema(description = "识别区域")
    private OcrAreaModel ocrAreaModel;

    @Schema(description = "识别结果")
    private OcrResult ocrResult;

    public OcrRecognizeModel(String contentId, OcrAreaModel ocrAreaModel) {
        this.contentId = contentId;
        this.ocrAreaModel = ocrAreaModel;
    }

    public OcrRecognizeModel() {
    }
}
